import { nanoid } from "nanoid";

export default function getTempId() {
    let tempId = localStorage.getItem('userTempId')
    if (!tempId) {
        tempId = nanoid()
        localStorage.setItem('userTempId', tempId)
    }
    return tempId
}